﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Commander.program
{
    /// <summary>
    /// Простейший браузер
    /// </summary>
    public partial class webbrowser : Window
    {
        private string namefile=null;
 
        public webbrowser()
        {
            InitializeComponent();
        }

        public string NameFile
        {
            set
            {
                namefile = value;
            }
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (namefile != null)
            {
                Uri uri = new Uri(namefile);
                StatusURL.Content = namefile;
                webBrowser1.Navigate(uri);
            }
        }
    }
}
